package com.oglvip.business.remote.service.api;

import com.oglvip.business.dto.ResponseData;
import com.oglvip.business.remote.service.Targets;
import com.oglvip.business.remote.support.annotation.RestClient;
import com.oglvip.business.remote.support.request.ContentTypes;

import javax.ws.rs.Consumes;
import javax.ws.rs.FormParam;
import javax.ws.rs.POST;
import javax.ws.rs.Path;

/**
 * @auther hanchao
 * @date 2016/12/14 13:23
 */
@RestClient(Targets.PLATFORM_API)
@Path("/api/position")
public interface PositionService {
    @POST
    @Path("/provinces")
    @Consumes(ContentTypes.APPLICATION_FORM_URLENCODED)
    ResponseData getProvinces();


    @POST
    @Path(("/cities"))
    @Consumes(ContentTypes.APPLICATION_FORM_URLENCODED)
    ResponseData getCities(@FormParam("provinceId")Integer provinceId);

    @POST
    @Path(("/areas"))
    @Consumes(ContentTypes.APPLICATION_FORM_URLENCODED)
    ResponseData getAreas(@FormParam("cityId")Integer cityId);

}
